package org.jeecg.modules.utils.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.utils.entity.WmsBaseDocument;
import org.jeecg.modules.utils.mapper.WmsBaseDocumentMapper;
import org.jeecg.modules.utils.service.IWmsBaseDocumentService;
import org.springframework.stereotype.Service;

/**
 * @Description: 客户信息表
 * @Author: jeecg-boot
 * @Date: 2023-07-21
 * @Version: V1.0
 */
@Service
public class WmsBaseDocumentServiceImpl extends ServiceImpl<WmsBaseDocumentMapper, WmsBaseDocument> implements IWmsBaseDocumentService {

    /**
     * 修改文档状态为已提交
     * @param id
     * @param tableName
     * @return
     */
    public int updateDocumentToCommitted(String id, String tableName) {
        return getBaseMapper().updateDocumentToCommitted(id, tableName);
    }

    /**
     * 修改文档状态为已完成
     * @param id
     * @param tableName
     * @return
     */
    @Override
    public int updateDocumentToCompleted(String id, String tableName) {
        return getBaseMapper().updateDocumentToCompleted(id,tableName);
    }

    @Override
    public int updateDocumentStatus(String id, String tableName, String status) {
        return getBaseMapper().updateDocumentStatus(id,tableName,status);
    }
}
